package cn.beforedark.yygh.userinfo.service;

import cn.beforedark.yygh.model.userinfo.UserInfo;
import cn.beforedark.yygh.dto.user.UserAuthDto;
import cn.beforedark.yygh.dto.user.LoginDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {
    Map<String, Object> login(LoginDto loginDto);

    Map<String, Object> detail(Long id);

    /**
     * 提取请求头 中的 token 解析 id
     */
    Long getThisUserId();

    void updateUserAuth(Long userId, UserAuthDto userAuthVo);
}
